package com.tms.app.tms.ui.home.msg;


import android.content.Intent;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.tms.app.tms.adapter.OrderChildAdapter;
import com.tms.app.tms.app.Constant;
import com.tms.app.tms.bean.Msg;
import com.tms.app.tms.bean.response.BaseResponse;
import com.tms.app.tms.bean.response.MsgRes;
import com.tms.app.tms.db.MsgDBUtil;
import com.tms.app.tms.ui.base.presenter.AbsBaseListP;
import com.tms.app.tms.ui.base.view.IListView;
import com.tms.app.tms.ui.taskinfo.TaskInfoActivity;

import org.xutils.http.RequestParams;

import java.util.List;

/**
 * Created by happy on 2017/8/28.
 */

public class MsgChangeP extends AbsBaseListP {
    IListView iViewTrade;
    private String token;
    private long time=0;

    public void setiView(IListView iViewTrade) {
        this.iViewTrade = iViewTrade;
    }





    @Override
    public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
            Msg msg= (Msg) adapter.getData().get(position);
            Intent intent=new Intent(view.getContext(),TaskInfoActivity.class);
            intent.putExtra("planId",msg.getPlanId());
            intent.putExtra("readStatus",1);
            intent.putExtra("type",3);
            iViewTrade.startActivity(intent);
    }



    @Override
    public void onRefresh() {
        super.onRefresh();

    }
}
